/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __PICTUREFORMAT_DECOMPRESSORWINPVR_H__
#define __PICTUREFORMAT_DECOMPRESSORWINPVR_H__

#include "Decompressor.h"
#include <NoCopy.h>

namespace liba
{
namespace pictureformat
{

class DecompressorPVR : public Decompressor, private Nocopy
{
private:
	int             width, height;
	unsigned char * frameData;
	unsigned char * currentData;
public:
	DecompressorPVR(const void * data, int size);
	virtual ~DecompressorPVR();
	virtual int get_width(int frame)const;
	virtual int get_height(int frame)const;
	virtual Format get_best_format()const;
	virtual int get_frame_count()const;
	virtual void reset(Format f, int frame);
	virtual void unpack_scanline(void * dst);
	virtual void skip_scanline(int count);
};

}
}
using namespace liba;

#endif